/**
 * Created by zhangsanfeng on 2020/07/02.
 */

import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const state = {
  isBig: true,
  monaco: {} // 编辑器value
}

const getters = {
  getMonaco(state) {
    return state.monaco
  },
  getIsBig(state) {
    return state.isBig
  }
}

const mutations = {
  setMonaco(state, data) {
    state.monaco = data
  },
  setIsBig(state, data) {
    state.isBig = data
  }
}

const actions = {
}

const store = new Vuex.Store({
  state,
  getters,
  mutations,
  actions
})
export default store
